<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>13-日期和时间组件</title>
    <!--Vue必须放上面-->
    <script src="../js/vue.js"></script>
    <!--ElementUi-->
    <script src="../element-ui/lib/index.js"></script>
    <link rel="stylesheet" href="../element-ui/lib/theme-chalk/index.css">
</head>
<body>
    <div id="app">
        <!--
            日期事件组件： el-date-picker    行级组件
                type="datetime"   ： 设置能够输入年月日,时分秒  , 不设置该属性默认只能输入年月日
        -->
        <el-date-picker v-model="birthday"></el-date-picker>
        <el-date-picker v-model="birthday" type="datetime"></el-date-picker>
    </div>
    <script>
        const vm = new Vue({
            el: "#app",
            data: {
                birthday:undefined,
            },
            methods: {}
        });
    </script>
</body>
</html>